<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('datareport/reportcharge/flexigrid') ?>',
                    colModel: 
                    [
						{display: '<?= translate('DATAREPORT_ID') ?>', name: 'id', width: '80'},
						{display: '<?= translate('DATAREPORT_SERVERID') ?>', name: 'serverid', width: '100', process: formatSearch},
                        {display: '<?= translate('DATAREPORT_CHANNELID') ?>', name: 'channel', width: '100', process: formatSearch},
                        {display: '<?= translate('DATAREPORT_CHARGE_INCOME') ?>', name: 'income', width: '100'},
                        {display: '<?= translate('DATAREPORT_CHARGE_PAYROLENUM') ?>', name: 'payrolenum', width: '100'},
                        {display: '<?= translate('DATAREPORT_CHARGE_PAYARPU') ?>', name: 'payarpu', width: '100'},
                        {display: '<?= translate('DATAREPORT_CHARGE_NEWADDACCOUNT') ?>', name: 'newaddaccount', width: '100'},
                        {display: '<?= translate('DATAREPORT_CHARGE_LOGINACCOUNT') ?>', name: 'loginaccount', width: '100'},
                        {display: '<?= translate('DATAREPORT_CHARGE_DAU') ?>', name: 'dau', width: '100'},
                        {display: '<?= translate('DATAREPORT_CHARGE_LOGINARPU') ?>', name: 'loginarpu', width: '100'},
                        {display: '<?= translate('DATAREPORT_CHARGE_PAYRATE') ?>', name: 'payrate', width: '100'},
                        {display: '<?= translate('DATAREPORT_CHARGE_ACTIVEARPU') ?>', name: 'activearpu', width: '100'},
                        {display: '<?= translate('DATAREPORT_CHARGE_PCU') ?>', name: 'pcu', width: '100'},
                        {display: '<?= translate('DATAREPORT_CHARGE_ACU') ?>', name: 'acu', width: '100'},
                        {display: '<?= translate('DATAREPORT_OPERATIONTIME') ?>', name: 'operationtime', width: '150'},
                    ],
		    		buttons: [{name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},,{separator: true}],
                }));                
            });
        </script>
    </body>
</html>